import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.application.Application;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.project.impl.ProjectImpl;
import com.intellij.openapi.ui.Messages;
import com.intellij.psi.search.FilenameIndex;

public class MyActionClass1 extends AnAction {

    @Override
    public void actionPerformed(AnActionEvent e) {
//        Messages.showMessageDialog("hello, plugin", "hello,plugin ", Messages.getInformationIcon());
        // TODO: insert action logic here
        // TODO: insert action logic here
        Application application = ApplicationManager.getApplication();
        HelloComponent component = application.getComponent(HelloComponent.class);
        component.sayHello();
//        Project
//        FilenameIndex.getAllFilenames(new ProjectImpl().getName())
    }
}
